package com.example.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 预约
 * </p>
 *
 * @author wyx
 * @since 2025-03-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("appointment")
@ApiModel(value="Appointment对象", description="预约")
public class Appointment implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "用户id")
    @TableField("user_id")
    private Integer userId;

    @ApiModelProperty(value = "疫苗id")
    @TableField("vaccine_id")
    private Integer vaccineId;

    @ApiModelProperty(value = "护士id")
    @TableField("doctor_id")
    private Integer doctorId;

    @ApiModelProperty(value = "接种地址")
    @TableField("address")
    private String address;

    @ApiModelProperty(value = "预约接种时间")
    @TableField("app_date")
    private LocalDateTime appDate;

    @ApiModelProperty(value = "实际接种时间")
    @TableField("injected_time")
    private LocalDateTime injectedTime;

    @ApiModelProperty(value = "接种状态")
    @TableField("status")
    private Integer status;

    @ApiModelProperty(value = "记录创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;


}
